<?
require("config.php");

$location_status .= " | Enquire";

$show_backnav = "category_menu";

$menuname = NULL;

$menutarget = NULL;


if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");
  
  }

$Query = "select * from $table where id = $id";
$r = myQuery($Query);

if (!$r)header("location:" . $rela_path . "share/msg.php?v=9002");

$Code = $r[0][1];
$Name = $r[0][2];
$Logo = $r[0][3];



require($rela_path . "inc/header.php");

?> 


<table width="95%" border="0" align="center">
  <tr> 
    <td align="right">&nbsp; </td>
  </tr>
  <tr> 
    <td><p><br>
        <br>
        <br>
      </p>
      <table>
        <tr>
          <td class="tdheader">Code : </td>
          <td><?print($Code)?></td>
        </tr>
        <tr>
          <td class="tdheader">Name :</td>
          <td><?print($Name)?></td>
        </tr>
        <tr> 
          <td valign="top" class="tdheader">Clip :</td>
          <td> 
            <a href="http://<?=$_SERVER["HTTP_HOST"] . "/pictures_tw/$table/".$Logo?>" target="_blank">http://<?=$_SERVER["HTTP_HOST"] . "/pictures_tw/$table/".$Logo?></a> [<?php 
				$ext = strrchr($Logo, ".");
				$ext = strtolower($ext);			
				if ($ext == ".gif" || $ext == ".jpg" || $ext == ".png" || $ext == ".bmp" || $ext == ".jpeg") {
					echo "image file";
				} elseif ($ext == ".avi" || $ext == ".mpg" || $ext == ".mpeg" || $ext == ".wmv") {
					echo "movie file";
				} elseif ($ext == ".mp3" || $ext == ".wav") {
					echo "audio file";
				} elseif ($ext == ".pdf" || $ext == ".doc" || $ext == ".xsl") {
					echo "document file";
				}
			
			    ?>]<br />
          </td>
        </tr>
      </table>
      <p><br>
        <br>
        <br>
      </p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp; </p></td>
  </tr>
</table>
<?
require($rela_path . "inc/footer.php");
?>
